package com.example.yolov8android;

/**
 * 目标检测边界框
 * 使用实际像素坐标
 */
public class BoundingBox {
    private final int x;
    private final int y;
    private final int width;
    private final int height;
    private final int cls;
    private final String name;
    private final float cnf;

    public BoundingBox(int x, int y, int width, int height, float cnf, int cls, String name) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        this.cnf = cnf;
        this.cls = cls;
        this.name = name;
    }
    
    // getter 方法
    public int getX() { return x; }
    public int getY() { return y; }
    public int getWidth() { return width; }
    public int getHeight() { return height; }
    public float getCnf() { return cnf; }
    public int getCls() { return cls; }
    public String getClsName() { return name; }
} 